//-----------------------------------------------------------------------------
// File: CreateDevice.cpp
//
// Desc: This is the first tutorial for using Direct3D. In this tutorial, all
//       we are doing is creating a Direct3D device and using it to clear the
//       window.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------

#include "./src/SLGEngine.h"

using namespace SLG;


//-----------------------------------------------------------------------------
// Name: wWinMain()
// Desc: The application's entry point
//-----------------------------------------------------------------------------
INT WINAPI wWinMain( HINSTANCE hInst, HINSTANCE, LPWSTR, INT )
{
	UNREFERENCED_PARAMETER( hInst );
	SLGEngine slgEngine;
	if(!slgEngine.Init())
	{
		::MessageBox(NULL,"Init data error, the program will exit.","Init Error!",MB_OK);
		return -1;
	}
	slgEngine.GameLoop();
	return 0;
}
